package com.fx.test;

import java.util.Scanner;

import com.fx.net.UDPtalkReceive;
import com.fx.net.UDPtalkSend;

public class UDPtest02 {
	public static void main(String[] args) {

		new Thread(new UDPtalkReceive(9902)).start();
		while (true) {
			@SuppressWarnings("resource")
			String message = new Scanner(System.in).nextLine();
			new Thread(new UDPtalkSend(message, "127.0.0.1", 9938)).start();
		}
	}
}
